#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{double  k,m,n;double a;
 cin>>k;
 for(int i=1;i<=k;i++)
  { cin>>m>>n;
    a= (m+n-2)*2;
    cout<<"Scenario #"<<i<<":"<<endl;
    cout<<setiosflags(ios::fixed)<<setprecision(2)<<a<<endl<<endl;
   }
  system("pause");
  return 0;
} 
